package com.shenmazong.order.db;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 军哥
 * @version 1.0
 * @description: TbMessage
 * @date 2022/8/6 8:51
 */

@Data
@Document(collection = "tb_message")
public class TbMessage {
    @Id
    private Long id;
    private Integer type;
    private String message;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
